package com.content.management.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.content.management.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 字段数据（主键id能用于业务）
 * </p>
 *
 * @author xinghu
 * @since 2020-04-04
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("dictionary_data")
@ApiModel(value = "DictionaryData对象", description = "字段数据（主键id能用于业务）")
public class DictionaryData extends BaseEntity {

	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "字典目录唯一标识符")
	@TableField("directory_flag")
	private String directoryFlag;

	@ApiModelProperty(value = "单个字典的数据唯一标识符")
	@TableField("dictionary_flag")
	private String dictionaryFlag;

	@ApiModelProperty(value = "上级字典")
	@TableField("parents_flag")
	private String parentsFlag;

	@ApiModelProperty(value = "字典外显数据")
	@TableField("dictionary_data")
	private String dictionaryData;

	@ApiModelProperty(value = "数据级别，默认：0：根目录下数据")
	@TableField("data_level")
	private Integer dataLevel;

	@ApiModelProperty(value = "是否有上级目录")
	@TableField("have_parents")
	private Boolean haveParents;

	@ApiModelProperty(value = "是否有下级目录")
	@TableField("have_child")
	private Boolean haveChild;

	@ApiModelProperty(value = "拓展字段1")
	@TableField("expand_one")
	private String expandOne;

	@ApiModelProperty(value = "拓展字段2")
	@TableField("expand_two")
	private String expandTwo;

	@ApiModelProperty(value = "拓展字段3")
	@TableField("expand_three")
	private String expandThree;

	@ApiModelProperty(value = "拓展字段4")
	@TableField("expand_four")
	private String expandFour;

	@ApiModelProperty(value = "拓展字段5")
	@TableField("expand_five")
	private String expandFive;

	@ApiModelProperty(value = "排序编号")
	@TableField("sort_num")
	private Integer sortNum;


}
